#!/usr/bin/python
# -*- coding:utf-8 -*-
# -------------------------------------------------------
# @author  : 龍皓
# @time    : 2025/2/25 21:56
# @function: the script is used to do something.
# @version : 1.0.0
# -------------------------------------------------------
from loguru import logger

def setup_logger():
    # 添加文件处理器
    logger.add("log/spider.log", format="{time} - {level} - {message}", level="DEBUG")

    return logger